cmake_minimum_required(VERSION 3.15)

project(test)

set(PATH ..)
set(EXECUTABLE_OUTPUT_PATH ${PATH})

set(CMAKE_CXX_STANDARD 20)

set(INCLUDE_DIR 
    .. 
    ../../log 
    ../../timer 
    ../../threadpool 
    ../../memory)
include_directories(${INCLUDE_DIR})

set(SRCS
    test_echo_server.cpp
    ../channel.cpp
    ../../log/log.cpp
    ../../log/level.cpp
)

add_executable(test_echo_server ${SRCS})
target_link_libraries(test_echo_server pthread)